﻿namespace WMS6.Web
{
    using System;
    using System.Collections.Generic;
    using System.Data;
    using System.Web;
    using WMS6.Web.TransportMgtServiceRef;

    public class TransportMgtServiceClientProxy : BasePage
    {
        public string ConfirmPOD(PodInfo podInfo)
        {
            PubParasInfo pubParasInfo = this.InitPubParasInfo();
            string result = string.Empty;
            TransportMgtServiceClient client = new TransportMgtServiceClient("WSHttpBinding_ITransportMgtService");
            try
            {
                result = client.ConFirmPOD(podInfo, pubParasInfo);
                client.Close();
            }
            catch (Exception ex)
            {
                client.Abort();
                SysLog.GetInstance().LogProxyError(ex);
            }
            return result;
        }

        public string DeleteBolDetailInfo(List<string> bolDetailInfoIDs, List<string> lineIDs)
        {
            PubParasInfo pubParasInfo = this.InitPubParasInfo();
            string result = string.Empty;
            TransportMgtServiceClient client = new TransportMgtServiceClient("WSHttpBinding_ITransportMgtService");
            try
            {
                result = client.DeleteBolDetailInfo(bolDetailInfoIDs, lineIDs, pubParasInfo);
                client.Close();
            }
            catch (Exception ex)
            {
                client.Abort();
                SysLog.GetInstance().LogProxyError(ex);
            }
            return result;
        }

        public string DeleteDeliveryOrder(List<string> deliveryOrderIDs)
        {
            PubParasInfo pubParasInfo = this.InitPubParasInfo();
            string result = string.Empty;
            TransportMgtServiceClient client = new TransportMgtServiceClient("WSHttpBinding_ITransportMgtService");
            try
            {
                result = client.DeleteDeliveryOrder(deliveryOrderIDs, pubParasInfo);
                client.Close();
            }
            catch (Exception ex)
            {
                client.Abort();
                SysLog.GetInstance().LogProxyError(ex);
            }
            return result;
        }

        public string DeleteDispatchInfo(List<string> dispatchInfoDs)
        {
            PubParasInfo pubParasInfo = this.InitPubParasInfo();
            string result = string.Empty;
            TransportMgtServiceClient client = new TransportMgtServiceClient("WSHttpBinding_ITransportMgtService");
            try
            {
                result = client.DeleteDispatchInfo(dispatchInfoDs, pubParasInfo);
                client.Close();
            }
            catch (Exception ex)
            {
                client.Abort();
                SysLog.GetInstance().LogProxyError(ex);
            }
            return result;
        }

        public string DeletePodInfo(List<string> podIDs)
        {
            PubParasInfo pubParasInfo = this.InitPubParasInfo();
            string result = string.Empty;
            TransportMgtServiceClient client = new TransportMgtServiceClient("WSHttpBinding_ITransportMgtService");
            try
            {
                result = client.DeletePodInfo(podIDs, pubParasInfo);
                client.Close();
            }
            catch (Exception ex)
            {
                client.Abort();
                SysLog.GetInstance().LogProxyError(ex);
            }
            return result;
        }

        public string DeleteTrackingDetail(List<string> trackingDetailIDs)
        {
            PubParasInfo pubParasInfo = this.InitPubParasInfo();
            string result = string.Empty;
            TransportMgtServiceClient client = new TransportMgtServiceClient("WSHttpBinding_ITransportMgtService");
            try
            {
                result = client.DeleteTrackingDetail(trackingDetailIDs, pubParasInfo);
                client.Close();
            }
            catch (Exception ex)
            {
                client.Abort();
                SysLog.GetInstance().LogProxyError(ex);
            }
            return result;
        }

        public DataSet GetAllBolDetailInfo()
        {
            PubParasInfo pubParasInfo = this.InitPubParasInfo();
            DataSet ds = null;
            TransportMgtServiceClient client = new TransportMgtServiceClient("WSHttpBinding_ITransportMgtService");
            try
            {
                ds = client.GetAllBolDetailInfo(pubParasInfo);
                client.Close();
            }
            catch (Exception ex)
            {
                client.Abort();
                SysLog.GetInstance().LogProxyError(ex);
            }
            return ds;
        }

        public DataSet GetAllBolInfo()
        {
            PubParasInfo pubParasInfo = this.InitPubParasInfo();
            DataSet ds = null;
            TransportMgtServiceClient client = new TransportMgtServiceClient("WSHttpBinding_ITransportMgtService");
            try
            {
                ds = client.GetAllBolInfo(pubParasInfo);
                client.Close();
            }
            catch (Exception ex)
            {
                client.Abort();
                SysLog.GetInstance().LogProxyError(ex);
            }
            return ds;
        }

        public DataSet GetAllDeliveryOrderInfo()
        {
            PubParasInfo pubParasInfo = this.InitPubParasInfo();
            DataSet ds = null;
            TransportMgtServiceClient client = new TransportMgtServiceClient("WSHttpBinding_ITransportMgtService");
            try
            {
                ds = client.GetAllDeliveryOrderInfo(pubParasInfo);
                client.Close();
            }
            catch (Exception ex)
            {
                client.Abort();
                SysLog.GetInstance().LogProxyError(ex);
            }
            return ds;
        }

        public DataSet GetAllDispatchInfo()
        {
            PubParasInfo pubParasInfo = this.InitPubParasInfo();
            DataSet ds = null;
            TransportMgtServiceClient client = new TransportMgtServiceClient("WSHttpBinding_ITransportMgtService");
            try
            {
                ds = client.GetAllDispatchInfo(pubParasInfo);
                client.Close();
            }
            catch (Exception ex)
            {
                client.Abort();
                SysLog.GetInstance().LogProxyError(ex);
            }
            return ds;
        }

        public DataSet GetAllpodInfo()
        {
            PubParasInfo pubParasInfo = this.InitPubParasInfo();
            DataSet ds = null;
            TransportMgtServiceClient client = new TransportMgtServiceClient("WSHttpBinding_ITransportMgtService");
            try
            {
                ds = client.GetAllPodInfo(pubParasInfo);
                client.Close();
            }
            catch (Exception ex)
            {
                client.Abort();
                SysLog.GetInstance().LogProxyError(ex);
            }
            return ds;
        }

        public DataSet GetAllTrackingDetailInfo()
        {
            PubParasInfo pubParasInfo = this.InitPubParasInfo();
            DataSet ds = null;
            TransportMgtServiceClient client = new TransportMgtServiceClient("WSHttpBinding_ITransportMgtService");
            try
            {
                ds = client.GetAllTrackingDetailInfo(pubParasInfo);
                client.Close();
            }
            catch (Exception ex)
            {
                client.Abort();
                SysLog.GetInstance().LogProxyError(ex);
            }
            return ds;
        }

        public DataSet GetBolDetailByQueryEntity(BolDetailQueryEntity bolDetailQuery)
        {
            PubParasInfo pubParasInfo = this.InitPubParasInfo();
            DataSet ds = null;
            TransportMgtServiceClient client = new TransportMgtServiceClient("WSHttpBinding_ITransportMgtService");
            try
            {
                ds = client.GetBolDetailInfoByQueryEntity(bolDetailQuery, pubParasInfo);
                client.Close();
            }
            catch (Exception ex)
            {
                client.Abort();
                SysLog.GetInstance().LogProxyError(ex);
            }
            return ds;
        }

        public List<BolDetailInfo> GetBolDetailInfoByDeliveryOrderIDsAndEquipmentTypeID(List<string> DeliveryOrderIDs, string EquipmentTypeIDs, string types)
        {
            PubParasInfo pubParasInfo = this.InitPubParasInfo();
            List<BolDetailInfo> bolDetailInfoList = null;
            TransportMgtServiceClient client = new TransportMgtServiceClient("WSHttpBinding_ITransportMgtService");
            try
            {
                bolDetailInfoList = client.GetBolDetailInfoByDeliveryOrderIDsAndEquipmentTypeID(DeliveryOrderIDs, EquipmentTypeIDs, types, pubParasInfo);
                client.Close();
            }
            catch (Exception ex)
            {
                client.Abort();
                SysLog.GetInstance().LogProxyError(ex);
            }
            return bolDetailInfoList;
        }

        public BolDetailInfo GetBolDetailInfoByID(string bolDetailInfo, string lineID)
        {
            PubParasInfo pubParasInfo = this.InitPubParasInfo();
            BolDetailInfo bolDetailinfo = null;
            TransportMgtServiceClient client = new TransportMgtServiceClient("WSHttpBinding_ITransportMgtService");
            try
            {
                bolDetailinfo = client.GetBolDetailInfoByID(bolDetailInfo, lineID, pubParasInfo);
                client.Close();
            }
            catch (Exception ex)
            {
                client.Abort();
                SysLog.GetInstance().LogProxyError(ex);
            }
            return bolDetailinfo;
        }

        public BolInfo GetBolInfoByID(string bolID)
        {
            PubParasInfo pubParasInfo = this.InitPubParasInfo();
            BolInfo bolInfo = null;
            TransportMgtServiceClient client = new TransportMgtServiceClient("WSHttpBinding_ITransportMgtService");
            try
            {
                bolInfo = client.GetBolInfoByID(bolID, pubParasInfo);
                client.Close();
            }
            catch (Exception ex)
            {
                client.Abort();
                SysLog.GetInstance().LogProxyError(ex);
            }
            return bolInfo;
        }

        public DataSet GetBolInfoByQueryEntity(BolQueryEntity bolQuery)
        {
            PubParasInfo pubParasInfo = this.InitPubParasInfo();
            DataSet ds = null;
            TransportMgtServiceClient client = new TransportMgtServiceClient("WSHttpBinding_ITransportMgtService");
            try
            {
                ds = client.GetBolInfoByQueryEntity(bolQuery, pubParasInfo);
                client.Close();
            }
            catch (Exception ex)
            {
                client.Abort();
                SysLog.GetInstance().LogProxyError(ex);
            }
            return ds;
        }

        public DataSet GetDeliveryOrderByQueryEntity(DeliveryOrderQueryEntity deliveryOrderQuery)
        {
            PubParasInfo pubParasInfo = this.InitPubParasInfo();
            DataSet ds = null;
            TransportMgtServiceClient client = new TransportMgtServiceClient("WSHttpBinding_ITransportMgtService");
            try
            {
                ds = client.GetDeliveryOrderInfoByQueryEntity(deliveryOrderQuery, pubParasInfo);
                client.Close();
            }
            catch (Exception ex)
            {
                client.Abort();
                SysLog.GetInstance().LogProxyError(ex);
            }
            return ds;
        }

        public DeliveryOrderInfo GetDeliveryOrderInfoByID(string deliveryOrderID)
        {
            PubParasInfo pubParasInfo = this.InitPubParasInfo();
            DeliveryOrderInfo deliveryOrderInfo = null;
            TransportMgtServiceClient client = new TransportMgtServiceClient("WSHttpBinding_ITransportMgtService");
            try
            {
                deliveryOrderInfo = client.GetDeliveryOrderInfoByID(deliveryOrderID, pubParasInfo);
                client.Close();
            }
            catch (Exception ex)
            {
                client.Abort();
                SysLog.GetInstance().LogProxyError(ex);
            }
            return deliveryOrderInfo;
        }

        public DeliveryOrderInfo GetDeliveryOrderInfoByOrderIDDocType(string orderID, string docType)
        {
            PubParasInfo pubParasInfo = this.InitPubParasInfo();
            DeliveryOrderInfo deliveryOrderInfo = null;
            TransportMgtServiceClient client = new TransportMgtServiceClient("WSHttpBinding_ITransportMgtService");
            try
            {
                deliveryOrderInfo = client.GetDeliveryOrderInfoByOrderIDDocType(orderID, docType, pubParasInfo);
                client.Close();
            }
            catch (Exception ex)
            {
                client.Abort();
                SysLog.GetInstance().LogProxyError(ex);
            }
            return deliveryOrderInfo;
        }

        public DispatchInfo GetDispatchInfoByID(string dispatchID)
        {
            PubParasInfo pubParasInfo = this.InitPubParasInfo();
            DispatchInfo dispatchInfo = null;
            TransportMgtServiceClient client = new TransportMgtServiceClient("WSHttpBinding_ITransportMgtService");
            try
            {
                dispatchInfo = client.GetDispatchInfoByID(dispatchID, pubParasInfo);
                client.Close();
            }
            catch (Exception ex)
            {
                client.Abort();
                SysLog.GetInstance().LogProxyError(ex);
            }
            return dispatchInfo;
        }

        public DataSet GetDispatchInfoByQueryEntity(DispatchQueryEntity dispatchQuery)
        {
            PubParasInfo pubParasInfo = this.InitPubParasInfo();
            DataSet ds = null;
            TransportMgtServiceClient client = new TransportMgtServiceClient("WSHttpBinding_ITransportMgtService");
            try
            {
                ds = client.GetDispatchInfoByQueryEntity(dispatchQuery, pubParasInfo);
                client.Close();
            }
            catch (Exception ex)
            {
                client.Abort();
                SysLog.GetInstance().LogProxyError(ex);
            }
            return ds;
        }

        public static TransportMgtServiceClientProxy GetInstance()
        {
            return new TransportMgtServiceClientProxy();
        }

        public PodInfo GetPodInfoByID(string podID)
        {
            PubParasInfo pubParasInfo = this.InitPubParasInfo();
            PodInfo podInfo = null;
            TransportMgtServiceClient client = new TransportMgtServiceClient("WSHttpBinding_ITransportMgtService");
            try
            {
                podInfo = client.GetPodInfoByID(podID, pubParasInfo);
                client.Close();
            }
            catch (Exception ex)
            {
                client.Abort();
                SysLog.GetInstance().LogProxyError(ex);
            }
            return podInfo;
        }

        public DataSet GetPodInfoByQueryEntity(PodQueryEntity podQuery)
        {
            PubParasInfo pubParasInfo = this.InitPubParasInfo();
            DataSet ds = null;
            TransportMgtServiceClient client = new TransportMgtServiceClient("WSHttpBinding_ITransportMgtService");
            try
            {
                ds = client.GetPodInfoByQueryEntity(podQuery, pubParasInfo);
                client.Close();
            }
            catch (Exception ex)
            {
                client.Abort();
                SysLog.GetInstance().LogProxyError(ex);
            }
            return ds;
        }

        public TrackingDetailInfo GetTrackingDetailInfoByID(string trackingDetailID)
        {
            PubParasInfo pubParasInfo = this.InitPubParasInfo();
            TrackingDetailInfo trackingDetailInfo = null;
            TransportMgtServiceClient client = new TransportMgtServiceClient("WSHttpBinding_ITransportMgtService");
            try
            {
                trackingDetailInfo = client.GetTrackingDetailInfoByID(trackingDetailID, pubParasInfo);
                client.Close();
            }
            catch (Exception ex)
            {
                client.Abort();
                SysLog.GetInstance().LogProxyError(ex);
            }
            return trackingDetailInfo;
        }

        public DataSet GetTrackingDetailInfoByQueryEntity(TrackingDetailQueryEntity trackingDetailQuery)
        {
            PubParasInfo pubParasInfo = this.InitPubParasInfo();
            DataSet ds = null;
            TransportMgtServiceClient client = new TransportMgtServiceClient("WSHttpBinding_ITransportMgtService");
            try
            {
                ds = client.GetTrackingDetailInfoByQueryEntity(trackingDetailQuery, pubParasInfo);
                client.Close();
            }
            catch (Exception ex)
            {
                client.Abort();
                SysLog.GetInstance().LogProxyError(ex);
            }
            return ds;
        }

        public DataSet GetTrackingInfoByQueryEntity(TrackingDetailQueryEntity trackingDetailQuery)
        {
            PubParasInfo pubParasInfo = this.InitPubParasInfo();
            DataSet ds = null;
            TransportMgtServiceClient client = new TransportMgtServiceClient("WSHttpBinding_ITransportMgtService");
            try
            {
                ds = client.GetTrackingInfoByQueryEntity(trackingDetailQuery, pubParasInfo);
                client.Close();
            }
            catch (Exception ex)
            {
                client.Abort();
                SysLog.GetInstance().LogProxyError(ex);
            }
            return ds;
        }

        public string ImportFormShippingOrder(string orderID, string vDeliveryOrderID)
        {
            PubParasInfo pubParasInfo = this.InitPubParasInfo();
            string result = string.Empty;
            TransportMgtServiceClient client = new TransportMgtServiceClient("WSHttpBinding_ITransportMgtService");
            try
            {
                result = client.ImportFormShippingOrder(orderID, vDeliveryOrderID, pubParasInfo);
                client.Close();
            }
            catch (Exception ex)
            {
                client.Abort();
                SysLog.GetInstance().LogProxyError(ex);
            }
            return result;
        }

        private PubParasInfo InitPubParasInfo()
        {
            if (base.UserInfo != null)
            {
                return new PubParasInfo { UserID = base.UserInfo.UserID, UserLanguage = base.UserInfo.Preference.Lang, CurrentWH = base.UserInfo.CurrentWH };
            }
            HttpContext.Current.Response.Redirect("../Login.aspx?from=Logout", true);
            return null;
        }

        public string InsertBolDetailInfo(BolDetailInfo bolDetailInfo)
        {
            PubParasInfo pubParasInfo = this.InitPubParasInfo();
            string result = string.Empty;
            TransportMgtServiceClient client = new TransportMgtServiceClient("WSHttpBinding_ITransportMgtService");
            try
            {
                result = client.InsertBolDetailInfo(bolDetailInfo, pubParasInfo);
                client.Close();
            }
            catch (Exception ex)
            {
                client.Abort();
                SysLog.GetInstance().LogProxyError(ex);
            }
            return result;
        }

        public string InsertBolDetailList(List<BolDetailInfo> bolDetailInfos)
        {
            PubParasInfo pubParasInfo = this.InitPubParasInfo();
            string result = string.Empty;
            TransportMgtServiceClient client = new TransportMgtServiceClient("WSHttpBinding_ITransportMgtService");
            try
            {
                result = client.InsertBolDetailList(bolDetailInfos, pubParasInfo);
                client.Close();
            }
            catch (Exception ex)
            {
                client.Abort();
                SysLog.GetInstance().LogProxyError(ex);
            }
            return result;
        }

        public string InsertDeliveryOrderInfo(DeliveryOrderInfo deliveryOrderInfo)
        {
            PubParasInfo pubParasInfo = this.InitPubParasInfo();
            string result = string.Empty;
            TransportMgtServiceClient client = new TransportMgtServiceClient("WSHttpBinding_ITransportMgtService");
            try
            {
                result = client.InsertDeliveryOrder(deliveryOrderInfo, pubParasInfo);
                client.Close();
            }
            catch (Exception ex)
            {
                client.Abort();
                SysLog.GetInstance().LogProxyError(ex);
            }
            return result;
        }

        public string InsertDispatchAndBolDetailList(DispatchInfo dispatchInfo, List<BolDetailInfo> bolDetailInfos)
        {
            PubParasInfo pubParasInfo = this.InitPubParasInfo();
            string result = string.Empty;
            TransportMgtServiceClient client = new TransportMgtServiceClient("WSHttpBinding_ITransportMgtService");
            try
            {
                result = client.InsertDispatchAndBolDetailList(dispatchInfo, bolDetailInfos, pubParasInfo);
                client.Close();
            }
            catch (Exception ex)
            {
                client.Abort();
                SysLog.GetInstance().LogProxyError(ex);
            }
            return result;
        }

        public string InsertDispatchInfo(DispatchInfo dispatchInfo)
        {
            PubParasInfo pubParasInfo = this.InitPubParasInfo();
            string result = string.Empty;
            TransportMgtServiceClient client = new TransportMgtServiceClient("WSHttpBinding_ITransportMgtService");
            try
            {
                result = client.InsertDispatchInfo(dispatchInfo, pubParasInfo);
                client.Close();
            }
            catch (Exception ex)
            {
                client.Abort();
                SysLog.GetInstance().LogProxyError(ex);
            }
            return result;
        }

        public string InsertPodInfo(PodInfo podInfo)
        {
            PubParasInfo pubParasInfo = this.InitPubParasInfo();
            string result = string.Empty;
            TransportMgtServiceClient client = new TransportMgtServiceClient("WSHttpBinding_ITransportMgtService");
            try
            {
                result = client.InsertPodInfo(podInfo, pubParasInfo);
                client.Close();
            }
            catch (Exception ex)
            {
                client.Abort();
                SysLog.GetInstance().LogProxyError(ex);
            }
            return result;
        }

        public string InsertTrackingDetail(TrackingDetailInfo trackingDetailInfo)
        {
            PubParasInfo pubParasInfo = this.InitPubParasInfo();
            string result = string.Empty;
            TransportMgtServiceClient client = new TransportMgtServiceClient("WSHttpBinding_ITransportMgtService");
            try
            {
                result = client.InsertTrackingDetail(trackingDetailInfo, pubParasInfo);
                client.Close();
            }
            catch (Exception ex)
            {
                client.Abort();
                SysLog.GetInstance().LogProxyError(ex);
            }
            return result;
        }

        public string PODDeliveryOrderStatus(DeliveryOrderInfo deliveryOrderInfo)
        {
            PubParasInfo pubParasInfo = this.InitPubParasInfo();
            string result = string.Empty;
            TransportMgtServiceClient client = new TransportMgtServiceClient("WSHttpBinding_ITransportMgtService");
            try
            {
                result = client.PODDeliveryOrderStatus(deliveryOrderInfo, pubParasInfo);
                client.Close();
            }
            catch (Exception ex)
            {
                client.Abort();
                SysLog.GetInstance().LogProxyError(ex);
            }
            return result;
        }

        public string UpdateBolDetailInfo(BolDetailInfo bolDetailInfo)
        {
            PubParasInfo pubParasInfo = this.InitPubParasInfo();
            string result = string.Empty;
            TransportMgtServiceClient client = new TransportMgtServiceClient("WSHttpBinding_ITransportMgtService");
            try
            {
                result = client.UpdateBolDetailInfo(bolDetailInfo, pubParasInfo);
                client.Close();
            }
            catch (Exception ex)
            {
                client.Abort();
                SysLog.GetInstance().LogProxyError(ex);
            }
            return result;
        }

        public string UpdateBolDetailList(List<BolDetailInfo> bolDetailInfos)
        {
            PubParasInfo pubParasInfo = this.InitPubParasInfo();
            string result = string.Empty;
            TransportMgtServiceClient client = new TransportMgtServiceClient("WSHttpBinding_ITransportMgtService");
            try
            {
                result = client.UpdateBolDetailList(bolDetailInfos, pubParasInfo);
                client.Close();
            }
            catch (Exception ex)
            {
                client.Abort();
                SysLog.GetInstance().LogProxyError(ex);
            }
            return result;
        }

        public string UpdateBolInfo(BolInfo bolInfo)
        {
            PubParasInfo pubParasInfo = this.InitPubParasInfo();
            string result = string.Empty;
            TransportMgtServiceClient client = new TransportMgtServiceClient("WSHttpBinding_ITransportMgtService");
            try
            {
                result = client.UpdateBolInfo(bolInfo, pubParasInfo);
                client.Close();
            }
            catch (Exception ex)
            {
                client.Abort();
                SysLog.GetInstance().LogProxyError(ex);
            }
            return result;
        }

        public string UpdateDeliveryOrder(DeliveryOrderInfo deliveryOrderInfo)
        {
            PubParasInfo pubParasInfo = this.InitPubParasInfo();
            string result = string.Empty;
            TransportMgtServiceClient client = new TransportMgtServiceClient("WSHttpBinding_ITransportMgtService");
            try
            {
                result = client.UpdateDeliveryOrder(deliveryOrderInfo, pubParasInfo);
                client.Close();
            }
            catch (Exception ex)
            {
                client.Abort();
                SysLog.GetInstance().LogProxyError(ex);
            }
            return result;
        }

        public string UpdateDispatchInfo(DispatchInfo dispatchInfo)
        {
            PubParasInfo pubParasInfo = this.InitPubParasInfo();
            string result = string.Empty;
            TransportMgtServiceClient client = new TransportMgtServiceClient("WSHttpBinding_ITransportMgtService");
            try
            {
                result = client.UpdateDispatchInfo(dispatchInfo, pubParasInfo);
                client.Close();
            }
            catch (Exception ex)
            {
                client.Abort();
                SysLog.GetInstance().LogProxyError(ex);
            }
            return result;
        }

        public string UpdatePodInfo(PodInfo podInfo)
        {
            PubParasInfo pubParasInfo = this.InitPubParasInfo();
            string result = string.Empty;
            TransportMgtServiceClient client = new TransportMgtServiceClient("WSHttpBinding_ITransportMgtService");
            try
            {
                result = client.UpdatePodInfo(podInfo, pubParasInfo);
                client.Close();
            }
            catch (Exception ex)
            {
                client.Abort();
                SysLog.GetInstance().LogProxyError(ex);
            }
            return result;
        }

        public string UpdateTrackingDetail(TrackingDetailInfo trackingDetailInfo)
        {
            PubParasInfo pubParasInfo = this.InitPubParasInfo();
            string result = string.Empty;
            TransportMgtServiceClient client = new TransportMgtServiceClient("WSHttpBinding_ITransportMgtService");
            try
            {
                result = client.UpdateTrackingDetail(trackingDetailInfo, pubParasInfo);
                client.Close();
            }
            catch (Exception ex)
            {
                client.Abort();
                SysLog.GetInstance().LogProxyError(ex);
            }
            return result;
        }
    }
}

